home *** CD-ROM | disk | FTP | other *** search
/ PC World Interactive 1 / PC World Interactive 1 - Nisan 1997.iso / prog / masa / 25 / ncg_free / uninstal.inf < prev    next >
INI File  |  1996-10-14  |  9KB  |  317 lines

  1. ;****************************************************************************
  2. ;* Norton CrashGuard uninstallation Script                                  *
  3. ;****************************************************************************
  4.  
  5. ; Script Switch Numbers
  6.  
  7. ;  SWITCH_IS_NT40                             01
  8. ;  SWITCH_IS_WIN95                            02
  9.  
  10. ;  SWITCH_FULL_UNINSTALL                      10
  11.  
  12. ;  SWITCH_PREVIOUS                            50
  13. ;  SWITCH_NEXT                                51
  14. ;  SWITCH_CANCEL                              52
  15.  
  16. ;  SWITCH_EXIT_CONTINUE                       96
  17. ;  SWITCH_EXIT_RESTART                        97
  18. ;  SWITCH_EXIT_REBOOT                         98
  19.  
  20.  
  21. [InstallVersion]
  22. 4.0
  23.  
  24. [process]
  25. Uninstall()
  26. EnableForceWrite()
  27. EnableOverwrite()
  28. EnableWin95Shell()
  29. Enable256Advos()
  30. SetActiveCopy(MainCopy, uninstal.inf)
  31. Backup(CustDLLCopy)
  32. Backup(SettingsDLLCopy)
  33. ;Bitmaps(Bitmaps)
  34. CallProc(InitCustomDLL)
  35.  
  36. CallProc(KillRunningTasks)
  37. ;ResetTarget(SourceTarget)
  38. CallProc(SetTargetToSource)
  39. CallProc(SetSymantecDirectory)
  40. CallProc(SetLiveUpdateDirectory)
  41.  
  42. switch10=TRUE
  43. WizardPanel(WizUninstallWelcome, siwstngr.dll)
  44. WizardProcessPanel()
  45.  
  46. SelectOption(RequiredFiles)
  47. FullUninstall()
  48.  
  49. Uncopy()
  50.  
  51. CallProc(HourglassOn)
  52.  
  53. CallProc(UnregisterSharedUsage_LiveUpdate)
  54. CallProc(UninstallShared)
  55. CallProc(DeleteSettings)
  56. CallProc(UnregisterProductInfo)
  57. Delete(LeftoversFull)
  58.  
  59. CallProc(HourglassOff)
  60.  
  61. CallProc(DeleteProgramGroup)
  62.  
  63. switch96=FALSE
  64. switch97=TRUE
  65. switch98=FALSE
  66.  
  67. WizardPanel(WizUninstallFinish, siwstngr.dll)
  68. WizardProcessPanel()
  69.  
  70. CallProc(DeleteDirectories)
  71.  
  72. :Exit
  73. CallProc(RefreshDesktop)
  74. #if(switch97)
  75.    switch53=CallProcEx(bRestartWindows)
  76.    #if(switch53)
  77.       ExitRestart()
  78.    #else
  79.       Exit()
  80.    #endif
  81. #endif
  82.  
  83. #if(switch98)
  84.    switch53=CallProcEx(bRebootSystem)
  85.    #if(switch53)
  86.       RebootNT()
  87.    #else
  88.       Exit()
  89.    #endif
  90. #endif
  91.  
  92. Exit()
  93.  
  94. ;***************************************************************************
  95. ;* SubProc Executed When Install Takes Over As Shell
  96. ;***************************************************************************
  97.  
  98. [SubProc]
  99. Backup(CustDLLCopy)
  100. Backup(SettingsDLLCopy)
  101. ResetTarget(SourceTarget)
  102. Return()
  103.  
  104. ;***************************************************************************
  105. ;* Dialog Info                                                             *
  106. ;***************************************************************************
  107.  
  108. ;***************************************************************************
  109. ;* Message Text                                                            *
  110. ;***************************************************************************
  111.  
  112. [cancel]
  113. caption = "Exit Uninstall?"
  114. text    = "Are you sure that you want to exit?"
  115.  
  116. [cancelshell]
  117. caption = "Exit Uninstall?"
  118. "You have chosen to cancel the Uninstall"
  119. "program. In order to reset the Windows"
  120. "environment, Uninstall will also close"
  121. "Windows. Are you sure you want to exit?"
  122.  
  123. [NotImplemented]
  124. caption = "Feature Not Implemented"
  125. "This feature has not yet been implemented."
  126.  
  127. ;***************************************************************************
  128. ;* Set Directories                                                         *
  129. ;***************************************************************************
  130.  
  131. [SourceTarget]
  132. reset = TARGET1
  133. location = %s, SOURCE
  134.  
  135.  
  136. ;***************************************************************************
  137. ;* Delete Files                                                            *
  138. ;***************************************************************************
  139.  
  140. [LeftoversFull]
  141. pipedlg.dat,   TARGET1
  142. modem.id,      TARGET1
  143. $flecomp.tmp,  TARGET1
  144. wintdist.exe,  TARGET1
  145. system.ncg,    WINDOWS
  146. user.ncg,      WINDOWS
  147. crashgrd.gid,  TARGET1
  148. crashgrd.fts,  TARGET1
  149. crashgrd.ftg,  TARGET1
  150.  
  151. [CustDLLDel]
  152. siwstngr.dll,  TEMPDIR
  153.  
  154. ;***************************************************************************
  155. ;* External function calls (DLL)                                           *
  156. ;***************************************************************************
  157.  
  158. [InitCustomDLL]
  159. dll = siwstngr.dll
  160. function = InitCustomDLL
  161.  
  162. [TestFunction]
  163. dll = siwstngr.dll
  164. function = TestFunction
  165.  
  166. [SetSymantecDirectory]
  167. dll=siwstngr.dll
  168. function=SetSymantecDirectory
  169.  
  170. [SetLiveUpdateDirectory]
  171. dll=siwstngr.dll
  172. function=SetLiveUpdateDirectory
  173.  
  174. [UninstallShared]
  175. dll=siwstngr.dll
  176. function=UninstallShared
  177.  
  178. [UnregisterProductInfo]
  179. dll=siwstngr.dll
  180. function=UnregisterProductInfo
  181.  
  182. [KillRunningTasks]
  183. dll=siwstngr.dll
  184. function=KillRunningTasks
  185.  
  186. [DeleteDirectories]
  187. dll=siwstngr.dll
  188. function=DeleteDirectories
  189.  
  190. [HourglassOn]
  191. dll=siwstngr.dll
  192. function=HourglassOn
  193.  
  194. [HourglassOff]
  195. dll=siwstngr.dll
  196. function=HourglassOff
  197.  
  198. [SetTargetToSource]
  199. dll=siwstngr.dll
  200. function=SetTargetToSource
  201.  
  202. [bRestartWindows]
  203. dll=siwstngr.dll
  204. function=bRestartWindows
  205.  
  206. [bRebootSystem]
  207. dll=siwstngr.dll
  208. function=bRebootSystem
  209.  
  210. [UnregisterSharedUsage_LiveUpdate]
  211. dll=siwstngr.dll
  212. function=UnregisterSharedUsage_LiveUpdate
  213.  
  214. [DeleteProgramGroup]
  215. dll=siwstngr.dll
  216. function=DeleteProgramGroup
  217.  
  218. [DeleteSettings]
  219. dll=siwstngr.dll
  220. function=DeleteSettings
  221.  
  222. ;***************************************************************************
  223. ;* Misc install functions                                                  *
  224. ;***************************************************************************
  225.  
  226. [Bitmaps]
  227. color = %s\symantec.rle, -1, -1
  228.  
  229. ;***************************************************************************
  230. ;* File backup                                                             *
  231. ;***************************************************************************
  232.  
  233. [CustDLLCopy]
  234. siwstngr.dll, siwstngr.dll, SOURCE, TEMPDIR
  235.  
  236. [SettingsDLLCopy]
  237. cgsetngs.dll, cgsetngs.dll, SOURCE, TEMPDIR
  238.  
  239. ;***************************************************************************
  240. ;* SetShell section                                                        *
  241. ;***************************************************************************
  242.  
  243. [SetShell]
  244. WinIniName = win.ini
  245. SystemIniName = system.ini
  246. Message = MessageBox.SetShellMessage
  247. SysSectionName = boot
  248. WinSectionName = windows
  249. shell = %s\setup.exe
  250. load =
  251. run =
  252. SetShellIfLoaded=
  253. Backup = Backup.SetShellSave
  254. Restore = Backup.SetShellRestore
  255. Active=no
  256. IfActiveList=LoadedList
  257. SubProcess=SubProc
  258.  
  259. [SetShellSave]
  260. win.ini, win.siw, WINDOWS, WINDOWS
  261. system.ini, system.siw, WINDOWS, WINDOWS
  262.  
  263. [SetShellRestore]
  264. system.siw, system.ini, WINDOWS, WINDOWS
  265. win.siw, win.ini, WINDOWS, WINDOWS
  266.  
  267. [_LoadedList]
  268.  
  269. [SetShellMessage]
  270. caption  =  "Norton CrashGuard (TM) Uninstall"
  271. "Welcome to Norton CrashGuard (TM) Uninstall.  Please select OK to allow Uninstall to restart Windows and continue.  Press Cancel to exit Uninstall."
  272.  
  273.  
  274. ;***************************************************************************
  275. ;* Groups                                                                  *
  276. ;***************************************************************************
  277.  
  278. [MainGroup]
  279. "Norton CrashGuard", ncg.grp
  280.  
  281. [Norton CrashGuard]
  282. "Norton CrashGuard (TM)",                cgmain.exe,    RequiredFiles,,TARGET1,,,,TARGET1
  283. "Norton CrashGuard (TM) Release Notes",  readme.txt,    RequiredFiles,,TARGET1,,,,TARGET1
  284.  
  285. ;***************************************************************************
  286. ;* Copy                                                                    *
  287. ;***************************************************************************
  288.  
  289. [MainCopy]
  290. ;SelectionType.ComponentName,    "SelectionDlgText",               Size,    Required?,<Files>?,ShowItem?
  291.  
  292. CopyMain.RequiredFiles,          "Required Files - %ldK",            0,       Y,          N,          Y
  293. CopyMain.LiveUpdate,             "Symantec LiveUpdate - %ldK",       0,       N,          N,          N
  294.  
  295. ;***************************************************************************
  296. ;* Wizard Panels                                                           *
  297. ;***************************************************************************
  298.  
  299. [WizUninstallWelcome]
  300. Caption="Norton CrashGuard (TM) Uninstall"
  301. Title="Welcome to Uninstall"
  302. DlgProc=SIW_ProductDlgProc
  303. ResourceId=1005
  304. Bitmap16=900
  305. PanelDataProc=DefaultDataProc
  306. PanelFlags=first
  307.  
  308. [WizUninstallFinish]
  309. Caption="Norton CrashGuard (TM) Uninstall"
  310. Title="Uninstall Complete"
  311. DlgProc=SIW_ProductDlgProc
  312. ResourceId=1004
  313. ;Bitmap16=906
  314. Bitmap16=900
  315. PanelDataProc=DefaultDataProc
  316. PanelFlags=first+last+finish
  317.